package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.Community;

import java.util.List;

/**
 * @PACKAGE_NAME: com.atguigu.service
 * @CLASSNAME: CommunityService
 * @AUTHOR: zhangsan
 * @DATE: 2024/4/21 11:56
 * @SINCE 17.0.7
 * @DESCRIPTION: CommunityService
 */
public interface CommunityService extends BaseService<Community> {

    /**
     * 查询所有小区
     * @return
     */
    List<Community> findAll();

    /**
     * 通过小区id查询小区,并将查询出对应字典表字段的名字
     * @param communityId
     * @return
     */
    Community getDictNameById(Long communityId);
}
